static char *vdopopt = NULL;
static char *andopt = NULL;
static char *satopt = NULL;
+static char *fixnoneopt = NULL;
+static char *fixunknownopt = NULL;
static double hdopf;
static double vdopf;
static int satpf;
NULL, ARGTYPE_BOOL, ARG_NOMINMAX},
{"sat", &satopt, "Minimium sats to keep waypoints",
"-1.0", ARGTYPE_BEGIN_REQ | ARGTYPE_INT, ARG_NOMINMAX},
+ {"fixnone", &fixnoneopt, "Suppress waypoints without fix",
+ NULL, ARGTYPE_BOOL, ARG_NOMINMAX},
+ {"fixunknown", &fixunknownopt, "Suppress waypoints with unknown fix",
+ NULL, ARGTYPE_BOOL, ARG_NOMINMAX},
ARG_TERMINATOR
};
if ((satpf >= 0) && (waypointp->sat < satpf))
del = 1;
+ if ((fixnoneopt) && (waypointp->fix == fix_none))
+ del = 1;
+
+ if ((fixunknownopt) && (waypointp->fix == fix_unknown))
+ del = 1;
+
if (del) {
switch(what) {
case wptdata:
--- /dev/null
+<para>
+ This option is similar to the 'sat' option, but there are times when
+ some GPSes will know how many satellites are in view, but not yet computed
+ a valid fix. This option allows you to discard those points.
+</para>